package com.ruoyi.sys.energ.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 能耗告警记录对象 tb_energ_caution
 * 
 * @author ruoyi
 * @date 2022-05-24
 */
public class TbEnergCaution extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long ecId;

    /** 事件编号 */
    @Excel(name = "事件编号")
    private String ecSid;

    /** 告警事件 */
    @Excel(name = "告警事件")
    private String ecEvent;

    /** 告警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "告警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ecDate;

    /** 告警设备 */
    @Excel(name = "告警设备")
    private String ecName;

    /** 设备类别(0:电表1：水表) */
    @Excel(name = "设备类别(0:电表1：水表)")
    private Long ecType;

    /** 设备位置 */
    @Excel(name = "设备位置")
    private String ecPlace;

    /** 处理状态(0:未处理1：已处理) */
    @Excel(name = "处理状态(0:未处理1：已处理)")
    private Long ecState;

    public void setEcId(Long ecId) 
    {
        this.ecId = ecId;
    }

    public Long getEcId() 
    {
        return ecId;
    }
    public void setEcSid(String ecSid) 
    {
        this.ecSid = ecSid;
    }

    public String getEcSid() 
    {
        return ecSid;
    }
    public void setEcEvent(String ecEvent) 
    {
        this.ecEvent = ecEvent;
    }

    public String getEcEvent() 
    {
        return ecEvent;
    }
    public void setEcDate(Date ecDate) 
    {
        this.ecDate = ecDate;
    }

    public Date getEcDate() 
    {
        return ecDate;
    }
    public void setEcName(String ecName) 
    {
        this.ecName = ecName;
    }

    public String getEcName() 
    {
        return ecName;
    }
    public void setEcType(Long ecType) 
    {
        this.ecType = ecType;
    }

    public Long getEcType() 
    {
        return ecType;
    }
    public void setEcPlace(String ecPlace) 
    {
        this.ecPlace = ecPlace;
    }

    public String getEcPlace() 
    {
        return ecPlace;
    }
    public void setEcState(Long ecState) 
    {
        this.ecState = ecState;
    }

    public Long getEcState() 
    {
        return ecState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ecId", getEcId())
            .append("ecSid", getEcSid())
            .append("ecEvent", getEcEvent())
            .append("ecDate", getEcDate())
            .append("ecName", getEcName())
            .append("ecType", getEcType())
            .append("ecPlace", getEcPlace())
            .append("ecState", getEcState())
            .toString();
    }
}
